UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

SLEM 5 must display the date and time of the last successful account logon upon an SSH logon.


Overview

Finding ID Version Rule ID IA Controls Severity
V-261339 SLEM-05-255070 SV-261339r996480_rule Medium
Description
Providing users with feedback on when account accesses via SSH last occurred facilitates user recognition and reporting of unauthorized account use.
STIG Date
SUSE Linux Enterprise Micro (SLEM) 5 Security Technical Implementation Guide 2024-06-04

Details

Check Text ( C-65068r996478_chk )
Verify all remote connections via SSH to SLEM 5 display feedback on when account accesses last occurred with the following command:

> sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*printlastlog'
/etc/ssh/sshd_config:PrintLastLog yes

If the "PrintLastLog" is not set to "yes", is commented out, missing, or conflicting results are returned, this is a finding.
Fix Text (F-64976r996479_fix)
Configure SLEM 5 to provide users with feedback on when account accesses last occurred.

Add or modify the following lines in the "/etc/ssh/sshd_config" file:

PrintLastLog yes

Restart the SSH daemon in order for the changes to take effect:

> sudo systemctl restart sshd.service